home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1999 January - Disc 2 / Macworld (1999-01) (Disk 2).dmg / Serious Demos / Symbolic Composer 4.2 / Environment / System / MRAC / Convert / c-pitch-to-integer < prev    next >
Text File  |  1998-08-11  |  411b  |  13 lines

  1. c-pitch-to-integer pitch
  2.  
  3. This conversion function enables compressed pitch notation to be converted to integers where the pitch c4 is considered as zero (0). Compressed pitch notation can only be used actively when the pitch-to-symbol utility is pre-loaded.
  4.  
  5. (c-pitch-to-integer 'f#4)
  6. => 6
  7.  
  8. (c-pitch-to-integer '(f#4 a4 d5))
  9. => (6 9 14)
  10.  
  11. (c-pitch-to-integer '((f#4 a4 d5) (f4 b4 d&5)))
  12. => ((6 9 14) (5 11 13))
  13.